<?php $_uid =& $this->GetValue('_uid'); $serviceLink =& $this->GetValue('serviceLink'); $_user =& $this->GetValue('_user'); $myWinnerAmount =& $this->GetValue('myWinnerAmount'); $allCate =& $this->GetValue('allCate'); $ak =& $this->GetValue('ak'); $av =& $this->GetValue('av'); $oftenPlay =& $this->GetValue('oftenPlay'); $c =& $this->GetValue('c');  ?>
<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta name="format-detection" content="email=no">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="HandheldFriendly" content="true">
		<meta name="MobileOptimized" content="320">
		<meta name="screen-orientation" content="portrait">
		<meta name="x5-orientation" content="portrait">
		<meta name="full-screen" content="yes">
		<meta name="x5-fullscreen" content="true">
		<meta name="browsermode" content="application">
		<meta name="x5-page-mode" content="app">
		<meta name="msapplication-tap-highlight" content="no">
		<link href="static/css/normalize.min.css" rel="stylesheet">
		<link rel="stylesheet" href="static/css/layer.css">
		<script src="static/js/layer.m.js"></script>
		<link href="static/css/layer.css" type="text/css" rel="styleSheet" id="layermcss">
		<script src="static/js/jquery.min.js"></script>
		<script src="static/js/layer/layer.js"></script>
		<link href="static/css/app.css" rel="stylesheet">
		<link rel="stylesheet" href="static/js/layui/css/layui.css"  media="all">
		<script src="static/js/layui/layui.js"></script>
		<link type="image/x-icon" rel="shortcut icon" href="//static.imagess-google.com/ico/90cp.ico">
		<script>var _uid = <?php echo $_uid;?>;</script>
		<title>专业彩票投注平台！</title>
	</head>
	<body>

		<div id="app" class="index">
			<div class="header head8">
				<div id="HeaderTop" class="">
					<div class="snav">
						<div class="container">
							<div class="snavAll">
								<a href="/" class="curr">
								Hi，欢迎来到大众彩票！
								</a><ins> | </ins><a class="betNavMore">全部彩票</a>
							</div>
							<?php if (!$_uid){ ?>
								<ul class="snavInfo">
									<li><a href="<?php echo U('member/login');?>" class="">亲，请登录</a><i class="vertical"></i></li>
									<li><a href="<?php echo U('member/register');?>" class="">用户注册</a></li>
									<a class="serviceLink ServiceBtn" href="javascript:window.open('<?php echo $serviceLink['url'];?>','客服咨询','toolbar=no,location=no,status=no,menubar=no,revisable=no,width=960,height=520');"><i class="iconfont"></i><span></span></a>
								</ul>
							<?php }else{ ?>
								<ul class="snavInfo">
									<li class="userName MsgShow">
										<a class="_personalInfo">
											<img alt="" src="<?php echo $_user['head_pic'];?>"><i><?php echo $_user['username'];?></i></a><span id="unreadMsgNum" onclick="window.location='letter'">0</span>
									</li>
									<li class="HoverShow">
										<a id="userinfo" href="<?php echo U('member/index');?>" class="curr">我的账户 <i class="iconfont"></i></a>
										<div id="userIn" class="accountList HoverShowContent" style="display: none;">
											<i></i><a href="?m=member&c=BetRecord" class="">投注记录</a>
											<a href="?m=member&c=BillRecord" class="">交易记录</a>
											<a href="?m=member&c=info" class="">个人信息</a>
											<a href="?m=member&c=securityCenter" class="curr">安全中心</a>
											<a href="?m=member&c=agentIntro" class="">代理中心</a>
										</div>
									</li>
									<li>
										余额<span class="ShowMoney showMoney"><?php echo $_user['money'];?></span>
									</li>
									<li class="HoverPay">
										<a id="pay">充值 <i class="iconfont"></i></a>
										<div id="payIn" class="accountList HoverShowContent" style="display: none;">
											<i></i>
											<a href="<?php echo U('member/recharge', array('type'=>'bank'));?>" class="">银行转帐</a>
											<a href="<?php echo U('member/recharge', array('type'=>'quick'));?>" class="">快捷支付</a>
											<a href="<?php echo U('member/recharge', array('type'=>'alipay'));?>" class="">支付宝充值</a>
											<a href="<?php echo U('member/recharge', array('type'=>'weichar'));?>" class="">微信充值</a>
											<a href="<?php echo U('member/recharge', array('type'=>'qqpay'));?>" class="">QQ钱包</a>
											<a href="<?php echo U('member/recharge', array('type'=>'bankqrcode'));?>" class="">银联扫码</a>
											<a style="">快充-自动到账</a>
										</div>
									</li>
									<li><a href="?m=member&c=moneytx" class="">提现</a></li>
									<li class="LoginOut"><a href="<?php echo U('member/login/logout');?>" class="">退出</a></li>
									<?php if ($serviceLink['url']){ ?>
                                		<a class="serviceLink ServiceBtn" href="javascript:window.open('<?php echo $serviceLink['url'];?>','客服咨询','toolbar=no,location=no,status=no,menubar=no,revisable=no,width=960,height=520');"><i class="iconfont"></i><span></span></a>
                                	<?php }else{ ?>
                                		<a class="serviceLink ServiceBtn"><i class="iconfont"></i><span></span></a>
                                	<?php } ?>
								</ul>
							<?php } ?>
						</div>
						<div class="cardBox" style="left: 40%; top: 30px; display: none;">
							<div class="card fix">
								<div class="cardLeft">
									<img src="<?php echo $_user['head_pic'];?>" alt="" width="80" height="80">
									<h6><?php if ($_user['nickname']){ ?> <?php echo $_user['nickname']; }else{ ?>昵称未设置<?php } ?></h6>
								</div>
								<div class="cardInfo">
									<ul>
<!-- 										<li>性别：男</li> -->
										<li>账号：<?php echo $_user['username'];?></li>
										<li>等级：VIP2</li>
										<li>头衔：地主</li>
										<li>累计中奖：<?php echo $myWinnerAmount['all_prize'];?></li>
									</ul>
								</div>
								<ul class="cardIcon fix">
								<?php foreach ((array)$allCate as $ak => $av) { $__i++; ?>
									<?php if ($av['sname'] == 'k3'){ ?>
										<li><a href="<?php echo U('index/k3', array('id' => $av['lott_id']));?>"><i class="iconfont <?php if (!in_array($av['id'], $oftenPlay)){ ?> noActive <?php } ?> <?php echo $av['tags'];?>"></i></a></li>
									<?php }else if ($av['sname'] == 'ssc'){ ?>
										<li><a href="<?php echo U('index/ssc', array('id' => $av['lott_id']));?>"><i class="iconfont <?php if (!in_array($av['id'], $oftenPlay)){ ?> noActive <?php } ?> <?php echo $av['tags'];?>"></i></a></li>
									<?php }else if ($av['sname'] == '11x5'){ ?>
										<li><a href="<?php echo U('index/syx5', array('id' => $av['lott_id']));?>"><i class="iconfont <?php if (!in_array($av['id'], $oftenPlay)){ ?> noActive <?php } ?> <?php echo $av['tags'];?>"></i></a></li>
									<?php }else{ ?>
    									<li><a href="javascript:void(0);"><i class="iconfont <?php if (!in_array($av['id'], $oftenPlay)){ ?> noActive <?php } ?> <?php echo $av['tags'];?>"></i></a></li>
    								<?php } ?>
								<?php } ?>
<!-- 									<li><a><i class="iconfont L_K3"></i></a></li> -->
<!-- 									<li><a><i class="iconfont L_SSC"></i></a></li> -->
<!-- 									<li><a><i class="iconfont noActive L_SYX5"></i></a></li> -->
<!-- 									<li><a><i class="iconfont noActive L_PK10"></i></a></li> -->
<!-- 									<li><a><i class="iconfont noActive L_KL8"></i></a></li> -->
<!-- 									<li><a><i class="iconfont noActive L_FC3D"></i></a></li> -->
<!-- 									<li><a><i class="iconfont noActive L_PL35"></i></a></li> -->
<!-- 									<li><a><i class="iconfont noActive L_6HC"></i></a></li> -->
								</ul>
							</div>
						</div>
						
					</div>
				</div>
				<!---->
				<div class="nav">
					<div class="container fix">
						<input type="hidden" id="id_hidd_c" value="<?php echo $c;?>"/>
						<h3><a href="/"><img src="static/images/logo.png"></a></h3>
						<ul class="navItem fix flr" id="id_page_menu">
							<li class="curr" id="navIndex"><a href="/">首页</a></li>
							<li class="" id="navLottery"><a href="<?php echo U('index/lotteryHall');?>">购彩大厅</a></li>
							<li class="" id="navActivity"><a href="<?php echo U('index/activity');?>">活动中心</a></li>
							<li class="" id="navMobile"><a href="<?php echo U('index/wap');?>">手机购彩</a></li>
							<li class="" id="navSecurityCenter"><a href="<?php echo U('member/securityCenter');?>">我的账户</a></li>
							<li class="" id="navHelp"><a href="<?php echo U('member/helpCenter');?>">帮助指南</a></li>
							<span></span>
						</ul>
					</div>
				</div>
			</div>
			<script>
				var nowControll = $('#id_hidd_c').val();
				var menu_item0  = ['index'];
				var menu_item1  = ['lotteryHall'];
				var menu_item2  = [''];
				var menu_item3  = [''];
				var menu_item4  = ['securityCenter'];
				var menu_item5  = ['helpCenter'];
				if($.inArray(nowControll, menu_item0) > -1){
					$('#id_page_menu li').removeClass('curr');
					$('#id_page_menu li:eq(0)').addClass('curr');
				}
				if($.inArray(nowControll, menu_item1) > -1){
					$('#id_page_menu li').removeClass('curr');
					$('#id_page_menu li:eq(1)').addClass('curr');
				}
				if($.inArray(nowControll, menu_item2) > -1){
					$('#id_page_menu li').removeClass('curr');
					$('#id_page_menu li:eq(2)').addClass('curr');
				}
				if($.inArray(nowControll, menu_item3) > -1){
					$('#id_page_menu li').removeClass('curr');
					$('#id_page_menu li:eq(3)').addClass('curr');
				}
				if($.inArray(nowControll, menu_item4) > -1){
					$('#id_page_menu li').removeClass('curr');
					$('#id_page_menu li:eq(4)').addClass('curr');
				}
				if($.inArray(nowControll, menu_item5) > -1){
					$('#id_page_menu li').removeClass('curr');
					$('#id_page_menu li:eq(5)').addClass('curr');
				}
			</script>